﻿using AutoMapper;
using Microsoft.Extensions.DependencyInjection;
using Video.Application.Contract.Code;
using Video.Application.Contract.UserInfos;
using Video.Application.Contract.Videos;
using Video.Application.UserInfos;

namespace Video.Application
{
    public static class VideoApplicationExtension
    {
        public static void AddVideoApplication(this IServiceCollection services)
        {
            services.AddAutoMapper(typeof(VideoApplicationExtension).Assembly);

            // 注入服务
            services.AddTransient<IUserInfoService, UserInfoService>();

            services.AddTransient<ICodeService, ICodeService>();

            services.AddTransient<IVideoService, IVideoService>();
        }


    }
}
